{{ header }}{{ column_left }}
<div id="content">
  <div class="page-header">
    <div class="container-fluid">
      <div class="float-right">
        <button type="submit" form="form-shipping" data-toggle="tooltip" title="{{ button_save }}" class="btn btn-primary"><i class="fas fa-save"></i></button>
        <a href="{{ cancel }}" data-toggle="tooltip" title="{{ button_cancel }}" class="btn btn-light"><i class="fas fa-reply"></i></a></div>
      <h1>{{ heading_title }}</h1>
      <ol class="breadcrumb">
        {% for breadcrumb in breadcrumbs %}
          <li class="breadcrumb-item"><a href="{{ breadcrumb.href }}">{{ breadcrumb.text }}</a></li>
        {% endfor %}
      </ol>
    </div>
  </div>
  <div class="container-fluid">
    {% if error_warning %}
      <div class="alert alert-danger alert-dismissible"><i class="fas fa-exclamation-circle"></i> {{ error_warning }}
        <button type="button" class="close" data-dismiss="alert">&times;</button>
      </div>
    {% endif %}
    <div class="card">
      <div class="card-header"><i class="fas fa-pencil-alt"></i> {{ text_edit }}</div>
      <div class="card-body">
        <form action="{{ action }}" method="post" enctype="multipart/form-data" id="form-shipping">
          <div class="form-group row required">
            <label class="col-sm-2 col-form-label" for="input-key">{{ entry_key }}</label>
            <div class="col-sm-10">
              <input type="text" name="shipping_ups_key" value="{{ shipping_ups_key }}" placeholder="{{ entry_key }}" id="input-key" class="form-control"/>
              <small class="form-text text-muted">{{ help_key }}</small>
              {% if error_key %}
                <div class="invalid-tooltip">{{ error_key }}</div>
              {% endif %}
            </div>
          </div>
          <div class="form-group row required">
            <label class="col-sm-2 col-form-label" for="input-username">{{ entry_username }}</label>
            <div class="col-sm-10">
              <input type="text" name="shipping_ups_username" value="{{ shipping_ups_username }}" placeholder="{{ entry_username }}" id="input-username" class="form-control"/>
              <small class="form-text text-muted">{{ help_username }}</small>
              {% if error_username %}
                <div class="invalid-tooltip">{{ error_username }}</div>
              {% endif %}
            </div>
          </div>
          <div class="form-group row required">
            <label class="col-sm-2 col-form-label" for="input-password">{{ entry_password }}</label>
            <div class="col-sm-10">
              <input type="text" name="shipping_ups_password" value="{{ shipping_ups_password }}" placeholder="{{ entry_password }}" id="input-password" class="form-control"/>
              <small class="form-text text-muted">{{ help_password }}</small>
              {% if error_password %}
                <div class="invalid-tooltip">{{ error_password }}</div>
              {% endif %}
            </div>
          </div>
          <div class="form-group row">
            <label class="col-sm-2 col-form-label" for="input-pickup">{{ entry_pickup }}</label>
            <div class="col-sm-10">
              <select name="shipping_ups_pickup" id="input-pickup" class="form-control">
                {% for pickup in pickups %}
                  {% if pickup.value == shipping_ups_pickup %}
                    <option value="{{ pickup.value }}" selected="selected">{{ pickup.text }}</option>
                  {% else %}
                    <option value="{{ pickup.value }}">{{ pickup.text }}</option>
                  {% endif %}
                {% endfor %}
              </select>
              <small class="form-text text-muted">{{ help_pickup }}</small>
            </div>
          </div>
          <div class="form-group row">
            <label class="col-sm-2 col-form-label" for="input-packaging">{{ entry_packaging }}</label>
            <div class="col-sm-10">
              <select name="shipping_ups_packaging" id="input-packaging" class="form-control">
                {% for package in packages %}
                  {% if package.value == shipping_ups_packaging %}
                    <option value="{{ package.value }}" selected="selected">{{ package.text }}</option>
                  {% else %}
                    <option value="{{ package.value }}">{{ package.text }}</option>
                  {% endif %}
                {% endfor %}
              </select>
              <small class="form-text text-muted">{{ help_packaging }}</small>
            </div>
          </div>
          <div class="form-group row">
            <label class="col-sm-2 col-form-label" for="input-classification">{{ entry_classification }}</label>
            <div class="col-sm-10">
              <select name="shipping_ups_classification" id="input-classification" class="form-control">
                {% for classification in classifications %}
                  {% if classification.value == shipping_ups_classification %}
                    <option value="{{ classification.value }}" selected="selected">{{ classification.text }}</option>
                  {% else %}
                    <option value="{{ classification.value }}">{{ classification.text }}</option>
                  {% endif %}
                {% endfor %}
              </select>
              <small class="form-text text-muted">{{ help_classification }}</small>
            </div>
          </div>
          <div class="form-group row">
            <label class="col-sm-2 col-form-label" for="input-origin">{{ entry_origin }}</label>
            <div class="col-sm-10">
              <select name="shipping_ups_origin" id="input-origin" class="form-control">
                {% for origin in origins %}
                  {% if origin.value == shipping_ups_origin %}
                    <option value="{{ origin.value }}" selected="selected">{{ origin.text }}</option>
                  {% else %}
                    <option value="{{ origin.value }}">{{ origin.text }}</option>
                  {% endif %}
                {% endfor %}
              </select>
              <small class="form-text text-muted">{{ help_origin }}</small>
            </div>
          </div>
          <div class="form-group row">
            <label class="col-sm-2 col-form-label" for="input-shippernumber">{{ entry_ups_shippernumber }}</label>
            <div class="col-sm-10">
              <input type="text" name="shipping_ups_shippernumber" value="{{ shipping_ups_shippernumber }}" placeholder="{{ entry_ups_shippernumber }}" id="input-shippernumber" class="form-control"/>
              <small class="form-text text-muted">{{ help_ups_shippernumber }}</small>
              {% if error_shippernumber %}
                <div class="invalid-tooltip">{{ error_ups_shippernumber }}</div>
              {% endif %}
            </div>
          </div>
          <div class="form-group row">
            <label class="col-sm-2 col-form-label">{{ entry_use_negotiated_rates }}</label>
            <div class="col-sm-10">
              <div class="btn-group btn-group-toggle" data-toggle="buttons">
                {% if shipping_ups_use_negotiated_rates %}
                  <label class="btn btn-outline-secondary active"><input type="radio" name="shipping_ups_use_negotiated_rates" value="1" checked="checked"/> {{ text_yes }}</label>
                  <label class="btn btn-outline-secondary"><input type="radio" name="shipping_ups_use_negotiated_rates" value="0"/> {{ text_no }}</label>
                {% else %}
                  <label class="btn btn-outline-secondary"><input type="radio" name="shipping_ups_use_negotiated_rates" value="1"/> {{ text_yes }}</label>
                  <label class="btn btn-outline-secondary active"><input type="radio" name="shipping_ups_use_negotiated_rates" value="0" checked="checked"/> {{ text_no }}</label>
                {% endif %}
              </div>
              <small class="form-text text-muted">{{ help_use_negotiated_rates }}</small>
            </div>
          </div>
          <div class="form-group row required">
            <label class="col-sm-2 col-form-label" for="input-city">{{ entry_city }}</label>
            <div class="col-sm-10">
              <input type="text" name="shipping_ups_city" value="{{ shipping_ups_city }}" placeholder="{{ entry_city }}" id="input-city" class="form-control"/>
              <small class="form-text text-muted">{{ help_city }}</small>
              {% if error_city %}
                <div class="invalid-tooltip">{{ error_city }}</div>
              {% endif %}
            </div>
          </div>
          <div class="form-group row required">
            <label class="col-sm-2 col-form-label" for="input-state">{{ entry_state }}</label>
            <div class="col-sm-10">
              <input type="text" name="shipping_ups_state" value="{{ shipping_ups_state }}" placeholder="{{ entry_state }}" id="input-state" class="form-control" maxlength="2"/>
              <small class="form-text text-muted">{{ help_state }}</small>
              {% if error_state %}
                <div class="invalid-tooltip">{{ error_state }}</div>
              {% endif %}
            </div>
          </div>
          <div class="form-group row required">
            <label class="col-sm-2 col-form-label" for="input-country">{{ entry_country }}</label>
            <div class="col-sm-10">
              <input type="text" name="shipping_ups_country" value="{{ shipping_ups_country }}" placeholder="{{ entry_country }}" id="input-country" class="form-control" maxlength="2"/>
              {% if error_country %}
                <div class="invalid-tooltip">{{ error_country }}</div>
              {% endif %}
              <small class="form-text text-muted">{{ help_country }}</small>
            </div>
          </div>
          <div class="form-group row">
            <label class="col-sm-2 col-form-label" for="input-postcode">{{ entry_postcode }}</label>
            <div class="col-sm-10">
              <input type="text" name="shipping_ups_postcode" value="{{ shipping_ups_postcode }}" placeholder="{{ entry_postcode }}" id="input-postcode" class="form-control"/>
              <small class="form-text text-muted">{{ help_postcode }}</small>
            </div>
          </div>
          <div class="form-group row">
            <label class="col-sm-2 col-form-label">{{ entry_test }}</label>
            <div class="col-sm-10">
              <div class="btn-group btn-group-toggle" data-toggle="buttons">
                {% if shipping_ups_test %}
                  <label class="btn btn-outline-secondary active"><input type="radio" name="shipping_ups_test" value="1" checked="checked"/> {{ text_yes }}</label>
                  <label class="btn btn-outline-secondary"><input type="radio" name="shipping_ups_test" value="0"/> {{ text_no }}</label>
                {% else %}
                  <label class="btn btn-outline-secondary"><input type="radio" name="shipping_ups_test" value="1"/> {{ text_yes }}</label>
                  <label class="btn btn-outline-secondary active"><input type="radio" name="shipping_ups_test" value="0" checked="checked"/> {{ text_no }}</label>
                {% endif %}
              </div>
              <small class="form-text text-muted">{{ help_test }}</small>
            </div>
          </div>
          <div class="form-group row">
            <label class="col-sm-2 col-form-label" for="input-quote-type">{{ entry_quote_type }}</label>
            <div class="col-sm-10">
              <select name="shipping_ups_quote_type" id="input-quote-type" class="form-control">
                {% for quote_type in quote_types %}
                  {% if quote_type.value == shipping_ups_quote_type %}
                    <option value="{{ quote_type.value }}" selected="selected">{{ quote_type.text }}</option>
                  {% else %}
                    <option value="{{ quote_type.value }}">{{ quote_type.text }}</option>
                  {% endif %}
                {% endfor %}
              </select>
              <small class="form-text text-muted">{{ help_quote_type }}</small>
            </div>
          </div>
          <div class="form-group row">
            <label class="col-sm-2 col-form-label">{{ entry_service }}</label>
            <div class="col-sm-10">
              <div id="service" class="form-control" style="height: 150px; overflow: auto;">
                <label class="form-check"><input type="checkbox" class="form-check-input" onchange="$(this).parent().parent().find(':checkbox').not(this).prop('checked', $(this).prop('checked'));"/> {{ text_all }}</label>
                <div id="US">
                  <label class="form-check">
                    {% if shipping_ups_us_01 %}
                      <input type="checkbox" name="shipping_ups_us_01" value="1" checked="checked" class="form-check-input"/>
                      {{ text_next_day_air }}
                    {% else %}
                      <input type="checkbox" name="shipping_ups_us_01" value="1" class="form-check-input"/>
                      {{ text_next_day_air }}
                    {% endif %}
                  </label> <label class="form-check">
                    {% if shipping_ups_us_02 %}
                      <input type="checkbox" name="shipping_ups_us_02" value="1" checked="checked" class="form-check-input"/>
                      {{ text_2nd_day_air }}
                    {% else %}
                      <input type="checkbox" name="shipping_ups_us_02" value="1" class="form-check-input"/>
                      {{ text_2nd_day_air }}
                    {% endif %}
                  </label> <label class="form-check">
                    {% if shipping_ups_us_03 %}
                      <input type="checkbox" name="shipping_ups_us_03" value="1" checked="checked" class="form-check-input"/>
                      {{ text_ground }}
                    {% else %}
                      <input type="checkbox" name="shipping_ups_us_03" value="1" class="form-check-input"/>
                      {{ text_ground }}
                    {% endif %}
                  </label> <label class="form-check">
                    {% if shipping_ups_us_07 %}
                      <input type="checkbox" name="shipping_ups_us_07" value="1" checked="checked" class="form-check-input"/>
                      {{ text_worldwide_express }}
                    {% else %}
                      <input type="checkbox" name="shipping_ups_us_07" value="1" class="form-check-input"/>
                      {{ text_worldwide_express }}
                    {% endif %}
                  </label> <label class="form-check">
                    {% if shipping_ups_us_08 %}
                      <input type="checkbox" name="shipping_ups_us_08" value="1" checked="checked" class="form-check-input"/>
                      {{ text_worldwide_expedited }}
                    {% else %}
                      <input type="checkbox" name="shipping_ups_us_08" value="1" class="form-check-input"/>
                      {{ text_worldwide_expedited }}
                    {% endif %}
                  </label> <label class="form-check">
                    {% if shipping_ups_us_11 %}
                      <input type="checkbox" name="shipping_ups_us_11" value="1" checked="checked" class="form-check-input"/>
                      {{ text_standard }}
                    {% else %}
                      <input type="checkbox" name="shipping_ups_us_11" value="1" class="form-check-input"/>
                      {{ text_standard }}
                    {% endif %}
                  </label> <label class="form-check">
                    {% if shipping_ups_us_12 %}
                      <input type="checkbox" name="shipping_ups_us_12" value="1" checked="checked" class="form-check-input"/>
                      {{ text_3_day_select }}
                    {% else %}
                      <input type="checkbox" name="shipping_ups_us_12" value="1" class="form-check-input"/>
                      {{ text_3_day_select }}
                    {% endif %}
                  </label> <label class="form-check">
                    {% if shipping_ups_us_13 %}
                      <input type="checkbox" name="shipping_ups_us_13" value="1" checked="checked" class="form-check-input"/>
                      {{ text_next_day_air_saver }}
                    {% else %}
                      <input type="checkbox" name="shipping_ups_us_13" value="1" class="form-check-input"/>
                      {{ text_next_day_air_saver }}
                    {% endif %}
                  </label> <label class="form-check">
                    {% if shipping_ups_us_14 %}
                      <input type="checkbox" name="shipping_ups_us_14" value="1" checked="checked" class="form-check-input"/>
                      {{ text_next_day_air_early_am }}
                    {% else %}
                      <input type="checkbox" name="shipping_ups_us_14" value="1" class="form-check-input"/>
                      {{ text_next_day_air_early_am }}
                    {% endif %}
                  </label> <label class="form-check">
                    {% if shipping_ups_us_54 %}
                      <input type="checkbox" name="shipping_ups_us_54" value="1" checked="checked" class="form-check-input"/>
                      {{ text_worldwide_express_plus }}
                    {% else %}
                      <input type="checkbox" name="shipping_ups_us_54" value="1" class="form-check-input"/>
                      {{ text_worldwide_express_plus }}
                    {% endif %}
                  </label> <label class="form-check">
                    {% if shipping_ups_us_59 %}
                      <input type="checkbox" name="shipping_ups_us_59" value="1" checked="checked" class="form-check-input"/>
                      {{ text_2nd_day_air_am }}
                    {% else %}
                      <input type="checkbox" name="shipping_ups_us_59" value="1" class="form-check-input"/>
                      {{ text_2nd_day_air_am }}
                    {% endif %}
                  </label> <label class="form-check">
                    {% if shipping_ups_us_65 %}
                      <input type="checkbox" name="shipping_ups_us_65" value="1" checked="checked" class="form-check-input"/>
                      {{ text_saver }}
                    {% else %}
                      <input type="checkbox" name="shipping_ups_us_65" value="1" class="form-check-input"/>
                      {{ text_saver }}
                    {% endif %}
                  </label>
                </div>
                <div id="PR">
                  <label class="form-check">
                    {% if shipping_ups_pr_01 %}
                      <input type="checkbox" name="shipping_ups_pr_01" value="1" checked="checked" class="form-check-input"/>
                      {{ text_next_day_air }}
                    {% else %}
                      <input type="checkbox" name="shipping_ups_pr_01" value="1" class="form-check-input"/>
                      {{ text_next_day_air }}
                    {% endif %}
                  </label> <label class="form-check">
                    {% if shipping_ups_pr_02 %}
                      <input type="checkbox" name="shipping_ups_pr_02" value="1" checked="checked" class="form-check-input"/>
                      {{ text_2nd_day_air }}
                    {% else %}
                      <input type="checkbox" name="shipping_ups_pr_02" value="1" class="form-check-input"/>
                      {{ text_2nd_day_air }}
                    {% endif %}
                  </label> <label class="form-check">
                    {% if shipping_ups_pr_03 %}
                      <input type="checkbox" name="shipping_ups_pr_03" value="1" checked="checked" class="form-check-input"/>
                      {{ text_ground }}
                    {% else %}
                      <input type="checkbox" name="shipping_ups_pr_03" value="1" class="form-check-input"/>
                      {{ text_ground }}
                    {% endif %}
                  </label> <label class="form-check">
                    {% if shipping_ups_pr_07 %}
                      <input type="checkbox" name="shipping_ups_pr_07" value="1" checked="checked" class="form-check-input"/>
                      {{ text_worldwide_express }}
                    {% else %}
                      <input type="checkbox" name="shipping_ups_pr_07" value="1" class="form-check-input"/>
                      {{ text_worldwide_express }}
                    {% endif %}
                  </label> <label class="form-check">
                    {% if shipping_ups_pr_08 %}
                      <input type="checkbox" name="shipping_ups_pr_08" value="1" checked="checked" class="form-check-input"/>
                      {{ text_worldwide_expedited }}
                    {% else %}
                      <input type="checkbox" name="shipping_ups_pr_08" value="1" class="form-check-input"/>
                      {{ text_worldwide_expedited }}
                    {% endif %}
                  </label> <label class="form-check">
                    {% if shipping_ups_pr_14 %}
                      <input type="checkbox" name="shipping_ups_pr_14" value="1" checked="checked" class="form-check-input"/>
                      {{ text_next_day_air_early_am }}
                    {% else %}
                      <input type="checkbox" name="shipping_ups_pr_14" value="1" class="form-check-input"/>
                      {{ text_next_day_air_early_am }}
                    {% endif %}
                  </label> <label class="form-check">
                    {% if shipping_ups_pr_54 %}
                      <input type="checkbox" name="shipping_ups_pr_54" value="1" checked="checked" class="form-check-input"/>
                      {{ text_worldwide_express_plus }}
                    {% else %}
                      <input type="checkbox" name="shipping_ups_pr_54" value="1" class="form-check-input"/>
                      {{ text_worldwide_express_plus }}
                    {% endif %}
                  </label> <label class="form-check">
                    {% if shipping_ups_pr_65 %}
                      <input type="checkbox" name="shipping_ups_pr_65" value="1" checked="checked" class="form-check-input"/>
                      {{ text_saver }}
                    {% else %}
                      <input type="checkbox" name="shipping_ups_pr_65" value="1" class="form-check-input"/>
                      {{ text_saver }}
                    {% endif %}
                  </label>
                </div>
                <div id="CA">
                  <label class="form-check">
                    {% if shipping_ups_ca_01 %}
                      <input type="checkbox" name="shipping_ups_ca_01" value="1" checked="checked" class="form-check-input"/>
                      {{ text_express }}
                    {% else %}
                      <input type="checkbox" name="shipping_ups_ca_01" value="1" class="form-check-input"/>
                      {{ text_express }}
                    {% endif %}
                  </label> <label class="form-check">
                    {% if shipping_ups_ca_02 %}
                      <input type="checkbox" name="shipping_ups_ca_02" value="1" checked="checked" class="form-check-input"/>
                      {{ text_expedited }}
                    {% else %}
                      <input type="checkbox" name="shipping_ups_ca_02" value="1" class="form-check-input"/>
                      {{ text_expedited }}
                    {% endif %}
                  </label> <label class="form-check">
                    {% if shipping_ups_ca_07 %}
                      <input type="checkbox" name="shipping_ups_ca_07" value="1" checked="checked" class="form-check-input"/>
                      {{ text_worldwide_express }}
                    {% else %}
                      <input type="checkbox" name="shipping_ups_ca_07" value="1" class="form-check-input"/>
                      {{ text_worldwide_express }}
                    {% endif %}
                  </label> <label class="form-check">
                    {% if shipping_ups_ca_08 %}
                      <input type="checkbox" name="shipping_ups_ca_08" value="1" checked="checked" class="form-check-input"/>
                      {{ text_worldwide_expedited }}
                    {% else %}
                      <input type="checkbox" name="shipping_ups_ca_08" value="1" class="form-check-input"/>
                      {{ text_worldwide_expedited }}
                    {% endif %}
                  </label> <label class="form-check">
                    {% if shipping_ups_ca_11 %}
                      <input type="checkbox" name="shipping_ups_ca_11" value="1" checked="checked" class="form-check-input"/>
                      {{ text_standard }}
                    {% else %}
                      <input type="checkbox" name="shipping_ups_ca_11" value="1" class="form-check-input"/>
                      {{ text_standard }}
                    {% endif %}
                  </label> <label class="form-check">
                    {% if shipping_ups_ca_12 %}
                      <input type="checkbox" name="shipping_ups_ca_12" value="1" checked="checked" class="form-check-input"/>
                      {{ text_3_day_select }}
                    {% else %}
                      <input type="checkbox" name="shipping_ups_ca_12" value="1" class="form-check-input"/>
                      {{ text_3_day_select }}
                    {% endif %}
                  </label> <label class="form-check">
                    {% if shipping_ups_ca_13 %}
                      <input type="checkbox" name="shipping_ups_ca_13" value="1" checked="checked" class="form-check-input"/>
                      {{ text_saver }}
                    {% else %}
                      <input type="checkbox" name="shipping_ups_ca_13" value="1" class="form-check-input"/>
                      {{ text_saver }}
                    {% endif %}
                  </label> <label class="form-check">
                    {% if shipping_ups_ca_14 %}
                      <input type="checkbox" name="shipping_ups_ca_14" value="1" checked="checked" class="form-check-input"/>
                      {{ text_express_early_am }}
                    {% else %}
                      <input type="checkbox" name="shipping_ups_ca_14" value="1" class="form-check-input"/>
                      {{ text_express_early_am }}
                    {% endif %}
                  </label> <label class="form-check">
                    {% if shipping_ups_ca_54 %}
                      <input type="checkbox" name="shipping_ups_ca_54" value="1" checked="checked" class="form-check-input"/>
                      {{ text_worldwide_express_plus }}
                    {% else %}
                      <input type="checkbox" name="shipping_ups_ca_54" value="1" class="form-check-input"/>
                      {{ text_worldwide_express_plus }}
                    {% endif %}
                  </label> <label class="form-check">
                    {% if shipping_ups_ca_65 %}
                      <input type="checkbox" name="shipping_ups_ca_65" value="1" checked="checked" class="form-check-input"/>
                      {{ text_saver }}
                    {% else %}
                      <input type="checkbox" name="shipping_ups_ca_65" value="1" class="form-check-input"/>
                      {{ text_saver }}
                    {% endif %}
                  </label>
                </div>
                <div id="MX">
                  <label class="form-check">
                    {% if shipping_ups_mx_07 %}
                      <input type="checkbox" name="shipping_ups_mx_07" value="1" checked="checked" class="form-check-input"/>
                      {{ text_worldwide_express }}
                    {% else %}
                      <input type="checkbox" name="shipping_ups_mx_07" value="1" class="form-check-input"/>
                      {{ text_worldwide_express }}
                    {% endif %}
                  </label> <label class="form-check">
                    {% if shipping_ups_mx_08 %}
                      <input type="checkbox" name="shipping_ups_mx_08" value="1" checked="checked" class="form-check-input"/>
                      {{ text_worldwide_expedited }}
                    {% else %}
                      <input type="checkbox" name="shipping_ups_mx_08" value="1" class="form-check-input"/>
                      {{ text_worldwide_expedited }}
                    {% endif %}
                  </label> <label class="form-check">
                    {% if shipping_ups_mx_54 %}
                      <input type="checkbox" name="shipping_ups_mx_54" value="1" checked="checked" class="form-check-input"/>
                      {{ text_worldwide_express_plus }}
                    {% else %}
                      <input type="checkbox" name="shipping_ups_mx_54" value="1" class="form-check-input"/>
                      {{ text_worldwide_express_plus }}
                    {% endif %}
                  </label> <label class="form-check">
                    {% if shipping_ups_mx_65 %}
                      <input type="checkbox" name="shipping_ups_mx_65" value="1" checked="checked" class="form-check-input"/>
                      {{ text_saver }}
                    {% else %}
                      <input type="checkbox" name="shipping_ups_mx_65" value="1" class="form-check-input"/>
                      {{ text_saver }}
                    {% endif %}
                  </label>
                </div>
                <div id="EU">
                  <label class="form-check">
                    {% if shipping_ups_eu_07 %}
                      <input type="checkbox" name="shipping_ups_eu_07" value="1" checked="checked" class="form-check-input"/>
                      {{ text_express }}
                    {% else %}
                      <input type="checkbox" name="shipping_ups_eu_07" value="1" class="form-check-input"/>
                      {{ text_express }}
                    {% endif %}
                  </label> <label class="form-check">
                    {% if shipping_ups_eu_08 %}
                      <input type="checkbox" name="shipping_ups_eu_08" value="1" checked="checked" class="form-check-input"/>
                      {{ text_expedited }}
                    {% else %}
                      <input type="checkbox" name="shipping_ups_eu_08" value="1" class="form-check-input"/>
                      {{ text_expedited }}
                    {% endif %}
                  </label> <label class="form-check">
                    {% if shipping_ups_eu_11 %}
                      <input type="checkbox" name="shipping_ups_eu_11" value="1" checked="checked" class="form-check-input"/>
                      {{ text_standard }}
                    {% else %}
                      <input type="checkbox" name="shipping_ups_eu_11" value="1" class="form-check-input"/>
                      {{ text_standard }}
                    {% endif %}
                  </label> <label class="form-check">
                    {% if shipping_ups_eu_54 %}
                      <input type="checkbox" name="shipping_ups_eu_54" value="1" checked="checked" class="form-check-input"/>
                      {{ text_worldwide_express_plus }}
                    {% else %}
                      <input type="checkbox" name="shipping_ups_eu_54" value="1" class="form-check-input"/>
                      {{ text_worldwide_express_plus }}
                    {% endif %}
                  </label> <label class="form-check">
                    {% if shipping_ups_eu_65 %}
                      <input type="checkbox" name="shipping_ups_eu_65" value="1" checked="checked" class="form-check-input"/>
                      {{ text_saver }}
                    {% else %}
                      <input type="checkbox" name="shipping_ups_eu_65" value="1" class="form-check-input"/>
                      {{ text_saver }}
                    {% endif %}
                  </label> <label class="form-check">
                    {% if shipping_ups_eu_82 %}
                      <input type="checkbox" name="shipping_ups_eu_82" value="1" checked="checked" class="form-check-input"/>
                      {{ text_today_standard }}
                    {% else %}
                      <input type="checkbox" name="shipping_ups_eu_82" value="1" class="form-check-input"/>
                      {{ text_today_standard }}
                    {% endif %}
                  </label> <label class="form-check">
                    {% if shipping_ups_eu_83 %}
                      <input type="checkbox" name="shipping_ups_eu_83" value="1" checked="checked" class="form-check-input"/>
                      {{ text_today_dedicated_courier }}
                    {% else %}
                      <input type="checkbox" name="shipping_ups_eu_83" value="1" class="form-check-input"/>
                      {{ text_today_dedicated_courier }}
                    {% endif %}
                  </label> <label class="form-check">
                    {% if shipping_ups_eu_84 %}
                      <input type="checkbox" name="shipping_ups_eu_84" value="1" checked="checked" class="form-check-input"/>
                      {{ text_today_intercity }}
                    {% else %}
                      <input type="checkbox" name="shipping_ups_eu_84" value="1" class="form-check-input"/>
                      {{ text_today_intercity }}
                    {% endif %}
                  </label> <label class="form-check">
                    {% if shipping_ups_eu_85 %}
                      <input type="checkbox" name="shipping_ups_eu_85" value="1" checked="checked" class="form-check-input"/>
                      {{ text_today_express }}
                    {% else %}
                      <input type="checkbox" name="shipping_ups_eu_85" value="1" class="form-check-input"/>
                      {{ text_today_express }}
                    {% endif %}
                  </label> <label class="form-check">
                    {% if shipping_ups_eu_86 %}
                      <input type="checkbox" name="shipping_ups_eu_86" value="1" checked="checked" class="form-check-input"/>
                      {{ text_today_express_saver }}
                    {% else %}
                      <input type="checkbox" name="shipping_ups_eu_86" value="1" class="form-check-input"/>
                      {{ text_today_express_saver }}
                    {% endif %}
                  </label>
                </div>
                <div id="other">
                  <label class="form-check">
                    {% if shipping_ups_other_07 %}
                      <input type="checkbox" name="shipping_ups_other_07" value="1" checked="checked" class="form-check-input"/>
                      {{ text_express }}
                    {% else %}
                      <input type="checkbox" name="shipping_ups_other_07" value="1" class="form-check-input"/>
                      {{ text_express }}
                    {% endif %}
                  </label> <label class="form-check">
                    {% if shipping_ups_other_08 %}
                      <input type="checkbox" name="shipping_ups_other_08" value="1" checked="checked" class="form-check-input"/>
                      {{ text_expedited }}
                    {% else %}
                      <input type="checkbox" name="shipping_ups_other_08" value="1" class="form-check-input"/>
                      {{ text_expedited }}
                    {% endif %}
                  </label> <label class="form-check">
                    {% if shipping_ups_other_11 %}
                      <input type="checkbox" name="shipping_ups_other_11" value="1" checked="checked" class="form-check-input"/>
                      {{ text_standard }}
                    {% else %}
                      <input type="checkbox" name="shipping_ups_other_11" value="1" class="form-check-input"/>
                      {{ text_standard }}
                    {% endif %}
                  </label> <label class="form-check">
                    {% if shipping_ups_other_54 %}
                      <input type="checkbox" name="shipping_ups_other_54" value="1" checked="checked" class="form-check-input"/>
                      {{ text_worldwide_express_plus }}
                    {% else %}
                      <input type="checkbox" name="shipping_ups_other_54" value="1" class="form-check-input"/>
                      {{ text_worldwide_express_plus }}
                    {% endif %}
                  </label> <label class="form-check">
                    {% if shipping_ups_other_65 %}
                      <input type="checkbox" name="shipping_ups_other_65" value="1" checked="checked" class="form-check-input"/>
                      {{ text_saver }}
                    {% else %}
                      <input type="checkbox" name="shipping_ups_other_65" value="1" class="form-check-input"/>
                      {{ text_saver }}
                    {% endif %}
                  </label>
                </div>
              </div>
              <small class="form-text text-muted">{{ help_service }}</small>
            </div>
          </div>
          <div class="form-group row">
            <label class="col-sm-2 col-form-label">{{ entry_display_time }}</label>
            <div class="col-sm-10">
              <div class="btn-group btn-group-toggle" data-toggle="buttons">
                {% if shipping_ups_display_time %}
                  <label class="btn btn-outline-secondary active"><input type="radio" name="shipping_ups_display_time" value="1" checked="checked"/> {{ text_yes }}</label>
                  <label class="btn btn-outline-secondary"><input type="radio" name="shipping_ups_display_time" value="0"/> {{ text_no }}</label>
                {% else %}
                  <label class="btn btn-outline-secondary"><input type="radio" name="shipping_ups_display_time" value="1"/> {{ text_yes }}</label>
                  <label class="btn btn-outline-secondary active"><input type="radio" name="shipping_ups_display_time" value="0" checked="checked"/> {{ text_no }}</label>
                {% endif %}
              </div>
              <small class="form-text text-muted">{{ help_display_time }}</small>
            </div>
          </div>
          <div class="form-group row">
            <label class="col-sm-2 col-form-label">{{ entry_insurance }}</label>
            <div class="col-sm-10">
              <div class="btn-group btn-group-toggle" data-toggle="buttons">
                {% if shipping_ups_insurance %}
                  <label class="btn btn-outline-secondary active"><input type="radio" name="shipping_ups_insurance" value="1" checked="checked"/> {{ text_yes }}</label>
                  <label class="btn btn-outline-secondary"><input type="radio" name="shipping_ups_insurance" value="0"/> {{ text_no }}</label>
                {% else %}
                  <label class="btn btn-outline-secondary"><input type="radio" name="shipping_ups_insurance" value="1"/> {{ text_yes }}</label>
                  <label class="btn btn-outline-secondary active"><input type="radio" name="shipping_ups_insurance" value="0" checked="checked"/> {{ text_no }}</label>
                {% endif %}
              </div>
              <small class="form-text text-muted">{{ help_insurance }}</small>
            </div>
          </div>
          <div class="form-group row">
            <label class="col-sm-2 col-form-label">{{ entry_display_weight }}</label>
            <div class="col-sm-10">
              <div class="btn-group btn-group-toggle" data-toggle="buttons">
                {% if shipping_ups_display_weight %}
                  <label class="btn btn-outline-secondary active"><input type="radio" name="shipping_ups_display_weight" value="1" checked="checked"/> {{ text_yes }}</label>
                  <label class="btn btn-outline-secondary"><input type="radio" name="shipping_ups_display_weight" value="0"/> {{ text_no }}</label>
                {% else %}
                  <label class="btn btn-outline-secondary"><input type="radio" name="shipping_ups_display_weight" value="1"/> {{ text_yes }}</label>
                  <label class="btn btn-outline-secondary active"><input type="radio" name="shipping_ups_display_weight" value="0" checked="checked"/> {{ text_no }}</label>
                {% endif %}
              </div>
            </div>
          </div>
          <div class="form-group row">
            <label class="col-sm-2 col-form-label" for="input-weight-class">{{ entry_weight_class }}</label>
            <div class="col-sm-10">
              <select name="shipping_ups_weight_class_id" id="input-weight-class" class="form-control">
                {% for weight_class in weight_classes %}
                  {% if weight_class.weight_class_id == shipping_ups_weight_class_id %}
                    <option value="{{ weight_class.weight_class_id }}" selected="selected">{{ weight_class.title }}</option>
                  {% else %}
                    <option value="{{ weight_class.weight_class_id }}">{{ weight_class.title }}</option>
                  {% endif %}
                {% endfor %}
              </select>
              <small class="form-text text-muted">{{ help_weight_class }}</small>
            </div>
          </div>
          <div class="form-group row">
            <label class="col-sm-2 col-form-label" for="input-length-class">{{ entry_length_class }}</label>
            <div class="col-sm-10">
              <select name="shipping_ups_length_class_id" id="input-length-class" class="form-control">
                {% for length_class in length_classes %}
                  {% if length_class.length_class_id == shipping_ups_length_class_id %}
                    <option value="{{ length_class.length_class_id }}" selected="selected">{{ length_class.title }}</option>
                  {% else %}
                    <option value="{{ length_class.length_class_id }}">{{ length_class.title }}</option>
                  {% endif %}
                {% endfor %}
              </select>
              <small class="form-text text-muted">{{ help_length_class }}</small>
            </div>
          </div>
          <div class="form-group row required">
            <label class="col-sm-2 col-form-label" for="input-length">{{ entry_dimension }}</label>
            <div class="col-sm-10">
              <div class="row">
                <div class="col-sm-4">
                  <input type="text" name="shipping_ups_length" value="{{ shipping_ups_length }}" placeholder="{{ entry_length }}" id="input-length" class="form-control"/>
                </div>
                <div class="col-sm-4">
                  <input type="text" name="shipping_ups_width" value="{{ shipping_ups_width }}" placeholder="{{ entry_width }}" id="input-width" class="form-control"/>
                </div>
                <div class="col-sm-4">
                  <input type="text" name="shipping_ups_height" value="{{ shipping_ups_height }}" placeholder="{{ entry_height }}" id="input-height" class="form-control"/>
                </div>
              </div>
              <small class="form-text text-muted">{{ help_dimension }}</small>
              {% if error_dimension %}
                <div class="invalid-tooltip">{{ error_dimension }}</div>
              {% endif %}
            </div>
          </div>
          <div class="form-group row">
            <label class="col-sm-2 col-form-label" for="input-tax-class">{{ entry_tax_class }}</label>
            <div class="col-sm-10">
              <select name="shipping_ups_tax_class_id" id="input-tax-class" class="form-control">
                <option value="0">{{ text_none }}</option>
                {% for tax_class in tax_classes %}
                  {% if tax_class.tax_class_id == shipping_ups_tax_class_id %}
                    <option value="{{ tax_class.tax_class_id }}" selected="selected">{{ tax_class.title }}</option>
                  {% else %}
                    <option value="{{ tax_class.tax_class_id }}">{{ tax_class.title }}</option>
                  {% endif %}
                {% endfor %}
              </select>
            </div>
          </div>
          <div class="form-group row">
            <label class="col-sm-2 col-form-label" for="input-geo-zone">{{ entry_geo_zone }}</label>
            <div class="col-sm-10">
              <select name="shipping_ups_geo_zone_id" id="input-geo-zone" class="form-control">
                <option value="0">{{ text_all_zones }}</option>
                {% for geo_zone in geo_zones %}
                  {% if geo_zone.geo_zone_id == shipping_ups_geo_zone_id %}
                    <option value="{{ geo_zone.geo_zone_id }}" selected="selected">{{ geo_zone.name }}</option>
                  {% else %}
                    <option value="{{ geo_zone.geo_zone_id }}">{{ geo_zone.name }}</option>
                  {% endif %}
                {% endfor %}
              </select>
            </div>
          </div>
          <div class="form-group row">
            <label class="col-sm-2 col-form-label" for="input-status">{{ entry_status }}</label>
            <div class="col-sm-10">
              <select name="shipping_ups_status" id="input-status" class="form-control">
                {% if shipping_ups_status %}
                  <option value="1" selected="selected">{{ text_enabled }}</option>
                  <option value="0">{{ text_disabled }}</option>
                {% else %}
                  <option value="1">{{ text_enabled }}</option>
                  <option value="0" selected="selected">{{ text_disabled }}</option>
                {% endif %}
              </select>
            </div>
          </div>
          <div class="form-group row">
            <label class="col-sm-2 col-form-label" for="input-sort-order">{{ entry_sort_order }}</label>
            <div class="col-sm-10">
              <input type="text" name="shipping_ups_sort_order" value="{{ shipping_ups_sort_order }}" placeholder="{{ entry_sort_order }}" id="input-sort-order" class="form-control"/>
            </div>
          </div>
          <div class="form-group row">
            <label class="col-sm-2 col-form-label" for="input-debug">{{ entry_debug }}</label>
            <div class="col-sm-10">
              <select name="shipping_ups_debug" id="input-debug" class="form-control">
                {% if shipping_ups_debug %}
                  <option value="1" selected="selected">{{ text_enabled }}</option>
                  <option value="0">{{ text_disabled }}</option>
                {% else %}
                  <option value="1">{{ text_enabled }}</option>
                  <option value="0" selected="selected">{{ text_disabled }}</option>
                {% endif %}
              </select>
              <small class="form-text text-muted">{{ help_debug }}</small>
            </div>
          </div>
        </form>
      </div>
    </div>
  </div>
</div>
<script type="text/javascript"><!--
$('select[name=\'shipping_ups_origin\']').on('change', function() {
	$('#service > div').hide();

	$('#' + this.value).show();
});

$('select[name=\'shipping_ups_origin\']').trigger('change');
//--></script>
{{ footer }}
